//
//  FeiYongViewController.m
//  LOU
//
//  Created by 要帅气的生活 on 15/11/10.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "FeiYongViewController.h"
#import "Size.h"
#import "ToolUtil.h"
@interface FeiYongViewController ()
@property (nonatomic, strong)UILabel * topicLabel;

@end

@implementation FeiYongViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [ToolUtil createLine:margin_64 superView:self.view lift:0 width:WindowWidth hight:0.5 color:[UIColor grayColor]];
    self.navigationController.navigationBar.hidden = YES;
    [self createTitle:@"楼盘详情" midTitle:@"购房费用"];
    [self creatView];
    // Do any additional setup after loading the view.
}
- (void)creatView
{
    self.topicLabel = [[UILabel alloc] initWithFrame:CGRectMake(margin_10, margin_90, WindowWidth, margin_34)];
    _topicLabel.font = FONT(17);
    _topicLabel.textColor = [UIColor blackColor];
    _topicLabel.text = @"购房费用计划";
    [self.view addSubview:_topicLabel];
    float y = [ToolUtil createLine:CGRectGetMaxY(_topicLabel.frame) superView:self.view lift:0 width:WindowWidth hight:0.5 color:[UIColor grayColor]];
    NSArray * array = [NSArray arrayWithObjects:@"首付",@"税收",@"贷款手续费",@"律师费",@"其他费用", nil];
    for (int i = 0 ; i < 5; i++) {
        
        UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(margin_10, i * 25 + y + margin_10, WindowWidth - margin_20, margin_20)];
        label.font = FONT(14);
        label.textColor = [UIColor blackColor];
        label.text = array[i];
        [self.view addSubview:label];
    }
    float h = 0;
    for (int i = 0 ; i< 4; i++) {
        UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(margin_160, i * 25 + y + margin_10, WindowWidth - margin_20, margin_20)];
        label.font = FONT(14);
        label.textColor = [UIColor blackColor];
        label.text = array[i];
        [self.view addSubview:label];
        h = CGRectGetMaxY(label.frame);
    }
    UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(margin_160, h + margin_5, WindowWidth - margin_140, [ToolUtil customAutoHeigh:@"ljahglhlkjlkjl;kk" width:WindowWidth - margin_140 num:14])];
    label.numberOfLines = 0 ;
    label.font = FONT(14);
    label.text = @"ljahglhlkjlkjl;kk";
    [self.view addSubview:label];
    
}
- (void)doBack:(UIButton *)btnBack
{
//    self.navigationController.navigationBar.hidden = NO;
    [self.navigationController popViewControllerAnimated:YES];
    self.tabBarController.tabBar.hidden = YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
